package com.cn.bukeManage.service;

import java.util.List;

import org.springframework.ui.Model;

import com.cn.bukeManage.pojo.Customer;
import com.cn.bukeManage.pojo.Dealer;
import com.cn.bukeManage.pojo.Supplier;
import com.cn.bukeManage.pojo.Worker;

public interface MemberService {

	public List<Customer> getAllCustomerByPage(Model model,Integer currentPage);
	
	public List<Dealer> getAllDealerByPage(Model model, Integer currentPage);
	public List<Supplier> getAllSupplierByPage(Model model, Integer currentPage);
	public List<Worker> getAllWorkerByPage(Model model, Integer currentPage);
	//停用顾客或经销商子账号
	public Integer toUpdatecustomer(Integer customerId);
	//根据注册日期降序排序
	public List<Customer> getAllCustomerByPageJ(Model model, Integer currentPage);
	//根据注册日期升序排序
	public List<Customer> getAllCustomerByPageS(Model model, Integer currentPage);
	//搜索顾客
	public List<Customer> searchCustomer(Model model, Integer currentPage, String search);
	

	//根据注册时间降序排序经销商
	public List<Dealer> getAllDealerByPageJ(Model model, Integer currentPage);
	//根据注册时间升序排序经销商
	public List<Dealer> getAllDealerByPageS(Model model, Integer currentPage);
	//搜索经销商
	public List<Dealer> searchDealer(Model model, String search);
	//停用经销商
	public Integer toUpdatedealer(Integer dealerId);
	//根据注册时间降序排序工人
	public List<Worker> getAllWorkerByPageJ(Model model, Integer currentPage);
	//根据注册时间升序排序工人
	public List<Worker> getAllWorkerByPageS(Model model, Integer currentPage);
	//搜索工人
	public List<Worker> searchWorker(Model model, Integer currentPage,String search);
	//停用工人
	public Integer toUpdateworker(Integer workerId);
	//根据id查询供货商
	public Supplier selectSupplier(Integer supplierId);
	//根据id修改供货商
	public Integer saveSupplier(Supplier supplier);
	//删除供货商
	public Integer deleteSupplier(Integer supplierId);
	//添加供货商
	public Integer insertSupplier(Supplier supplier);
	//搜索供货商
	public List<Supplier> searchSupplier(Model model, Integer currentPage, String search);

}
